<template>
  <div></div>
</template>

<script>
import website from "@/config/website";

export default {
  name: "leadcode",
  data() {
    return {
      socialForm: {
        tenantId: '731030',
        code: '',
      }
    }
  },
  created() {
    this.socialForm.code = this.$route.query.code
    if (this.socialForm.code !== "" && this.socialForm.code !== undefined) {
      this.$store.dispatch("LoginByLeadCode", this.socialForm).then(() => {
        this.$router.push({path: website.fistPage.value})
      });
    }
  }
}
</script>

<style scoped>

</style>
